package service;

import Pojo.Hetong;
import dao.HetongMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class HetongServiceImpl
  implements HetongService
{

  @Autowired
  private HetongMapper hetongMapper;

  public void inserthetong(Hetong hetong)
  {
    this.hetongMapper.inserthetong(hetong);
  }

  public Hetong findhetong(String house_id)
  {
    Hetong hetong = this.hetongMapper.findhetong(house_id);
    return hetong;
  }

  public void updatehetong(Hetong hetong)
  {
    this.hetongMapper.updatehetong(hetong);
  }

  public void deletehetong(String house_id)
  {
    this.hetongMapper.deletehetong(house_id);
  }
}